package com.example.administrator.yuejian35.Login.interf;

import com.example.administrator.yuejian35.Home.bean.Result;
import com.example.administrator.yuejian35.Login.bean.LoginResult;
import com.example.administrator.yuejian35.Login.bean.regresult;

import okhttp3.MultipartBody;
import retrofit2.Call;
import retrofit2.http.GET;
import retrofit2.http.Multipart;
import retrofit2.http.POST;
import retrofit2.http.Part;
import retrofit2.http.Query;

/**
 * Created by HP on 2017/9/17.
 */

public interface LoginServer {
    @Multipart
    @POST("User/Reg")
    Call<Result> reg(
            @Query("uname") String username,
            @Query("password") String password,
            @Part MultipartBody.Part file
    );

    @GET("User/DoLogin")
    Call<LoginResult> DoLogin(
            @Query("uname") String username,
            @Query("password") String password
    );
}
